package actiontiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionReissueGiftAll 补全礼物效果
type ActionReissueGiftAll struct {
	Id           int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	HostId       string         `json:"hostId" gorm:"column:host_id;type:varchar(256);not null;default:'';comment:主播id"`
	HostName     string         `json:"hostName" gorm:"column:host_name;type:varchar(256);not null;default:'';comment:主播昵称"`
	UserId       string         `json:"userId" gorm:"column:userId;type:varchar(256);not null;default:'';comment:用户id"`
	UserName     string         `json:"userName" gorm:"column:user_name;type:varchar(256);not null;default:'';comment:用户昵称"`
	GiftId       int64          `json:"gift_id" gorm:"column:gift_id;type:bigint;default:0;not null;comment:礼物id"`                       // 创建人id
	GiftCount    int64          `json:"gift_count" gorm:"column:gift_count;type:bigint;default:0;not null;comment:礼物数量"`                 // 创建人id
	Status       int            `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment:1:待发放，2:发放完成"`                //
	NeedAddScore int            `json:"needAddScore" gorm:"column:need_add_score;type:tinyint;default:0;not null;comment:1:需要加积分，0:不需要"` //
	JobDesc      string         `json:"jobDesc" gorm:"column:job_desc;type:varchar(256);not null;default:'';comment:发放描述描述"`
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"` //补发时间
	DeletedAt    gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
